package com.service.impl;


import com.domain.DO.FlightInfo;
import com.domain.VO.FlightInfoVO;
import com.mapper.FlightInfoMapper;
import com.service.IFlightInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import static com.domain.factory.FlightInfoFactory.FLIGHT_INFO_CONVERT;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年11月08日
 */
@Service
public class FlightInfoServiceImpl extends ServiceImpl<FlightInfoMapper, FlightInfo> implements IFlightInfoService {

    @Override
    public void save(FlightInfoVO flightInfoVO) {
        FlightInfo flightInfo = FLIGHT_INFO_CONVERT.toFlightInfo(flightInfoVO);
        save(flightInfo);
    }
}
